//Core_H The basic modfitical of Application.
//Developer: https://gitee.com/Kawaiino-Nyanpasu

#ifndef CORE_H_
#define CORE_H_
#include "/media/Workstation/VS-Code/Ref.h"//Use my rewrite file -- ref.h
extern "C" void version();
extern "C" void UI1();
extern "C" void UI2();

using Cpp::IO::cout;
using Cpp::IO::endl;

//////////////////////
    const double cokwh1 = 0.6104;
    const double cokwh2 = 0.6072;
    const double cokwh3 = 0.5854;
    const double cokwh4 = 0.5604;
    //for 1 kW/h cost.
//////////////////////

const char ver [6]="0.0.1";
void version(){
    cout<<"MainApp -- VER "<< ver <<" Alpha.\n(c) Karinsoft. 2020-2022"<<endl;
}

void UI1(){

}

#define A_YEAR_MONTH 12
class elecalc{
private:
    double kwh;
    double cost;//for a month.
protected:
    double total;//For a year.
public:
    elecalc():kwh(0),cost(0),total(0){};
    elecalc(double ekwh,double ec,double&et);
    elecalc(elecalc &);
    virtual ~elecalc(){};
};
#endif
// @CORE_H_ >>2424@!324refs

elecalc::elecalc(elecalc &ele){
    ele.cost=this->cost;
    ele.kwh=this->kwh;
}

elecalc::elecalc(double ekwh,double ec,double& et){

}
